﻿using System.Collections.Generic;
using Microsoft.Xna.Framework;

namespace ColonisatorGame
{
    public abstract class DisplayZone
    {
        public Rectangle Cadre { get; set; }

        /// <summary>
        /// Liste des interaction objects disponibles pour la zone d'affichage
        /// </summary>
        public Dictionary<int, InteractionObject> InteractionObjects { get; set; }

        public DisplayZone()
        {
            InteractionObjects = new Dictionary<int, InteractionObject>();
        }

        /// <summary>
        /// Détermine si la souris survole le cadre
        /// </summary>
        /// <param name="mouseRec"></param>
        /// <returns></returns>
        public bool IsMouseOvered(Rectangle mouseRec)
        {
            return Cadre.Intersects(mouseRec);
        }
    }
}
